home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / graphics / cards.i < prev    next >
Encoding:
Text File  |  1997-09-21  |  2.3 KB  |  79 lines

  1.     IFND GRAPHICS_CARDS_I
  2. GRAPHICS_CARDS_I  SET  1
  3.  
  4. **
  5. **  $VER: cards.i V0.8B
  6. **
  7. **  (C) Copyright 1996-1997 DreamWorld Productions.
  8. **      All Rights Reserved
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include 'games/dpkernel.i'
  13.     ENDC
  14.  
  15.     IFND    MODULE_CARDS_I
  16.     include    "modules/cards.i"
  17.     ENDC
  18.  
  19. ****************************************************************************
  20. * Module details.
  21.  
  22. Cards_ModVersion  =  0
  23. Cards_ModRevision =  8
  24.  
  25. ****************************************************************************
  26. * The CardSet structure for playing cards.
  27.  
  28. CSVERSION    = 1
  29. TAGS_CARDSET = ((ID_SPCTAGS<<16)|ID_CARDSET)
  30.  
  31.     STRUCTURE    CS1,HEAD_SIZEOF
  32.     WORD    CS_Card         ;Card number to draw.
  33.     WORD    CS_AmtCards     ;Number of cards in deck.
  34.     LONG    CS_AmtColours   ;Amount of colours
  35.     APTR    CS_Palette      ;Pointer to palette
  36.     LONG    CS_Options      ;Options like GETPALETTE.
  37.     LONG    CS_Attrib       ;Blitting attributes.
  38.     APTR    CS_Source       ;File that the cardset comes from.
  39.     APTR    CS_Bob          ;Bob structure.
  40.     APTR    CS_Owner        ;Pointer to Bitmap owner.
  41.     WORD    CS_ScrMode      ;Screen mode.    
  42.  
  43.     *** Private fields start now ***
  44.  
  45.     BYTE    CS_AFlags       ;Record of previous allocations.
  46.     BYTE    CS_Pad          ;Empty.
  47.     WORD    CS_CardWidth    ;Card width rounded up 16 pixels
  48.     LONG    CS_CardSize     ;Bytes used by each card.
  49.     LONG    CS_Viewmode     ;OS Viewmode ID.
  50.     LONG    CS_RekoRaw      ;Raw file - cardset
  51.     LONG    CS_TaglistBob   ;Tag list used for Bob.
  52.     LONG    CS_GfxDirect    ;Pointer to first graphic.
  53.     LONG    CS_GfxEnd       ;LISTEND terminator for the above.
  54.     LONG    CS_MaskDirect   ;Pointer to first mask.
  55.     LONG    CS_MaskEnd      ;LISTEND terminator for the above.
  56.     LABEL    CS_SIZEOF
  57.  
  58. ;CardSet Tags.
  59.  
  60. CSA_AmtColours = TLONG|CS_AmtColours
  61. CSA_Palette    = TAPTR|CS_Palette
  62. CSA_ScrMode    = TWORD|CS_ScrMode
  63. CSA_Options    = TLONG|CS_Options
  64. CSA_Attrib     = TLONG|CS_Attrib 
  65. CSA_Source     = TAPTR|CS_Source 
  66. CSA_Owner      = TAPTR|CS_Owner  
  67. CSA_BobTags    = TSTEPIN|CS_Bob
  68.  
  69. ;Flags for CardSet.
  70.  
  71. SHUFFLE_NORMAL =   0    ;Mix some times.
  72. SHUFFLE_BABY =     1    ;Move blocks of card in a different position.
  73. SHUFFLE_CROUPIER = 2    ;Divide in two decks and then bend and releasing them.
  74. SHUFFLE_MACHINE    =  3    ;Simulate a casino shuffling machine.
  75. SHUFFLE_GAMBLING = 4    ;Shuffle maintain blocks of cards closer.
  76. SHUFFLE_PARANOID = 5    ;Shuffle many many times.
  77.  
  78.     ENDC    ;GRAPHICS_CARDS_I
  79.